package com.eleadmin.common.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 留言表
 *
 * @author EleAdmin
 * @since 2025-04-28 22:40:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Comment对象", description = "留言表")
@TableName("t_comment")
public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "留言内容")
    private String comment;

    @ApiModelProperty(value = "发起人")
    private Integer userId;

    @ApiModelProperty(value = "评分")
    private Integer star;

    @ApiModelProperty(value = "发起人")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "接单人")
    private Integer acceptId;

    @ApiModelProperty(value = "发起人")
    @TableField(exist = false)
    private String acceptName;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "订单名称")
    @TableField(exist = false)
    private String orderName;


    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
